<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">

	<meta name="description" content="Plánovač akcí">
	<meta name="robots" content="{$robots}" n:ifset="$robots">

	<title>{ifset $title}{$title} :: {/ifset}Plánovač akcí</title>

	<link href="http://fonts.googleapis.com/css?family=Righteous&subset=latin,latin-ext" rel="stylesheet" type="text/css">

	<link rel="stylesheet" media="all" href="{$basePath}/media/css/style.css" type="text/css">
	<link rel="stylesheet" media="all" href="{$basePath}/media/css/smoothness/jquery-ui-1.8.21.custom.css" type="text/css">

	<link rel="stylesheet" media="screen,projection,tv" href="{$basePath}/media/css/nette.screen.css" type="text/css">
	<link rel="stylesheet" media="print" href="{$basePath}/media/css/nette.print.css" type="text/css">
	<link rel="shortcut icon" href="{$basePath}/media/favicon.ico" type="image/x-icon">

	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>

	<script type="text/javascript" src="{$basePath}/media/js/ajax.js"></script>
	<script type="text/javascript" src="{$basePath}/media/js/jQuery.js"></script>
	<script type="text/javascript" src="{$basePath}/media/js/netteForms.js"></script>

	{ifset #head}{include #head}{/ifset}
</head>

<body>
	<header>
		<h1><span class="db">Plán</span>ovač akcí</h1>

		<nav n:if="$user->isLoggedIn()">
			<ul>
				<li><a n:href="Dashboard:">Nástěnka</a></li>
				<li><a n:href="Ideas:">Nápady</a></li>
				<li><a n:href="Actions:">Akce</a></li>
				<li><a n:href="Accounts:">Uživatelé</a></li>
			</ul>
		</nav>
	</header>

	<nav n:if="$user->isLoggedIn()" class="barMenu">
		<ul>
			{if $user->isInRole('admin')}
				{snippet adminBar}
					<li n:if="!$user->identity->adminActivated || !isset($user->identity->adminActivated)"><a class="ajax" n:href="adminActivate!">Administrace</a></li>
					<li n:if="$user->identity->adminActivated"><a class="ajax" n:href="adminDeactivate!">Uživatelské rozhraní</a></li>
				{/snippet}
			{/if}

			<li><a n:href="Settings:">Nastavení</a></li>
			<li><a n:href="logout">Odhlásit</a></li>
		</ul>
	</nav>

	<section class="content">
		{snippet}
		<div class="box">
			<h2 n:ifset="$title">{$title}</h2>

			{ifset #contentLeft}{include #contentLeft}{/ifset}
		</div>
		<div class="box">
			{snippet flashMessages}
			<div n:if="$flashes" n:foreach="$flashes as $flash" class="container flash {$flash->type}">
				{$flash->message}
			</div>
			{/snippet}

			{ifset #contentRight}{include #contentRight}{/ifset}
		</div>
		{/snippet}
	</section>

	<footer>
		Idea by <a href="#"><span style="color: darkblue;">Michal</span> Petrouš</a> <br>
		Created by <a href="#"><span style="color: darkblue;">David</span> Bernhauer</a>
	</footer>

	<div style="{if $user->isLoggedIn()}display: none; {/if}border-top: 0.2em black solid; text-align: center;"><strong>Reklama:</strong> <endora></div>
</body>
</html>
